package org.nanotek.dao.spring.impl;

import java.util.List;

import org.nanotek.beans.ArtistCredit;
import org.nanotek.beans.Release;
import org.nanotek.dao.spring.ReleaseDAO;

@SuppressWarnings({"serial" , "unchecked"})
public class ReleaseDAOImpl extends GeneralPurposeDAO implements ReleaseDAO<Release>{

	@Override
	public List<Release> findReleaseByArtistCredit(ArtistCredit artistCredit) {
		String jpql = "Select r from Release r where release.artistCredit = ?";
		return getHibernateTemplate().find(jpql, artistCredit.getArtistCreditId());
	}

}
